var auth = {
  // 获取本地存储
  getLocalStorage: (key) => {
    return JSON.parse(localStorage.getItem(key))
  },

  // 设置本地存储
  setLocalStorage: (key, value) => {
    localStorage.setItem(key, JSON.stringify(value))
  },

  // 删除本地存储
  deleteLocalStorage: (key) => {
    localStorage.setItem(key, null)
  }
}

export default auth
